<template>
	<view class="content">

		<!-- order / menu -->
		<view>
			<uni-section class="mb-10" titleFontSize="16" titleColor="#000" title="我的订单"></uni-section>

			<!-- menu -->
			<view class="menu">
				<li>
					<uni-icons type="bars" size="28"></uni-icons>
					<text>全部订单</text>
				</li>
				<li>
					<uni-icons type="wallet-filled" size="28"></uni-icons>
					<text>待付款</text>
				</li>
				<li>
					<uni-icons type="calendar-filled" size="28"></uni-icons>
					<text>待消费</text>
				</li>
				<li>
					<uni-icons type="checkbox-filled" size="28"></uni-icons>
					<text>已完成</text>
				</li>
				<li>
					<uni-icons type="staff-filled" size="28"></uni-icons>
					<text>售后</text>
				</li>
			</view>

			<!-- 下方列表 -->
			<view class="list" v-for="(v,i) in List" :index="i" :key="i">
				<li>
					<uni-icons :type="v.icon" size="20" style="flex: 1;"></uni-icons>
					<text>{{v.text}}</text>
					<uni-icons type="right" size="14" style="flex: 1;"></uni-icons>
				</li>


			</view>

		</view>

	</view>
</template>

<script>
	import MyOrderList from '@/external/MyOrderList.js'
	export default {
		components: {

		},
		data() {
			return {
				List: [],
			};
		},
		mounted() {
			// 调用存放在外部的数据
			this.List = MyOrderList.map(function(v) {
				return v
			})
			// console.log(this.List);
		},
		methods: {

		},

	}
</script>

<style lang="scss">
	.content {
		background-color: #e9e9e9;

		.menu {
			height: 60px;
			display: flex;
			justify-content: space-around;
			background-color: #fff;

			li {
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				font-size: 10px;
			}
		}

		.list {
			margin-top: 10px;

			li {
				margin-top: 8px;
				background-color: #fff;
				display: flex;
				justify-content: space-between;
				align-items: center;
				font-size: 12px;
				height: 40px;

				text {
					flex: 8;
				}

			}
		}
	}
</style>